import request from "@/utils/request";

export function getCustomizeColumn(username, resourceType) {
    return request({
        url: "/resourcevisualization/customizeColumn/getCustomizeColumn/" +
            username +
            "/" +
            resourceType,
        method: "get",
    });
}

export function addCustomizeColumn(data) {
    return request({
        url: "/resourcevisualization/customizeColumn/addCustomizeColumn",
        method: "post",
        data,
    });
}

export function deleteCustomizeColumn(data) {
    return request({
        url: "/resourcevisualization/customizeColumn/deleteCustomizeColumn",
        method: "post",
        data,
    });
}

export function updateCustomizeColumn(data) {
    return request({
        url: "/resourcevisualization/customizeColumn/updateCustomizeColumn",
        method: "post",
        data,
    });
}

export function generateDefaultColumn(data) {
    return request({
        url: "/resourcevisualization/customizeColumn/generateDefaultColumn?resourceType=" +
            data,
        method: "post",
    });
}